package com.xzavier.yunlian_interview.service;

import com.xzavier.yunlian_interview.entity.User;

import java.sql.Blob;
import java.sql.SQLException;

public interface UserService {
    public Integer register(String username, String password);

    public User login(String username, String password);

    public boolean updateUserInfo(User user);

    public boolean updateAvatar(String userid, byte[] file) throws SQLException;

    public byte[] getAvatar(String userid) ;
}
